<?php
namespace Admin\Controller;
use Think\Controller;

class CommonController extends Controller {
    public function _initialize(){
    	// var_dump($_SESSION);
        if(!isset($_SESSION['username']) || $_SESSION['gid']!=1){
            $this->error('还没有登录，请先登录在进行访问',U('Admin/Login/Index'),2);
        }
    }

}